/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.fd.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.fd.domain.po.DocumentCodePoolPO;
import com.xy.biz.fd.domain.query.DocumentCodePoolQuery;

/**
 *
 *
 * @author zgy
 * @date 2021-6-11
 */
public interface DocumentCodePoolDao {

	/**
	 * 保存
	 *
	 * @param documentCodePoolPO
	 */
	int saveDocumentCodePool(DocumentCodePoolPO documentCodePoolPO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllDocumentCodePool(Collection<DocumentCodePoolPO> collection);

	/**
	 * 更新
	 *
	 * @param documentCodePoolPO
	 */
	int updateDocumentCodePool(DocumentCodePoolPO documentCodePoolPO);

	/**
	 * 根据BO更新
	 *
	 * @param documentCodePoolPO
	 */
	int updateDocumentCodePoolByBO(DocumentCodePoolPO documentCodePoolPO);
	int updateAllDocumentCodePoolByCode(Collection<DocumentCodePoolPO> collection);

	/**
	 * 删除
	 *
	 * @param documentCodePoolId
	 */
	int deleteDocumentCodePool(Long documentCodePoolId);

	/**
	 * 查找一个
	 *
	 * @param documentCodePoolId
	 * @return
	 */
	DocumentCodePoolPO getDocumentCodePool(Long documentCodePoolId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<DocumentCodePoolPO> listDocumentCodePoolById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<DocumentCodePoolPO> listDocumentCodePool(DocumentCodePoolQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countDocumentCodePool(DocumentCodePoolQuery query);

}
